import request from '../utils/axios'
export function getuser(data) {
    console.log(data)
    return request({
        url: 'user/user',
        method: 'get',
        params: data
    })
}
export function userdelete(data) {
    console.log(data)
    return request({
        url: 'user/delete',
        method: 'get',
        params: data
    })
} export function userupdate(data) {
    console.log(data)
    return request({
        url: 'user/update',
        method: 'get',
        params: data
    })
}
export function userroles(data) {
    console.log(data)
    return request({
        url: 'user/roles',
        method: 'get',
        params: data
    })
}
// userRoles
export function updateRoles(data) {
    console.log(data)
    return request({
        url: 'user/userRoles',
        method: 'post',
        data
    })
}

export function setpass(data) {
    return request({
        url: 'user/password',
        method: 'post',
        data
    })
}

export function setQuestion(data) {
    return request({
        url: 'user/encrypted',
        method: 'post',
        data
    })
}

export function updatePro(data) {
    return request({
        url: 'user/updates',
        method: 'post',
        data
    })
}

export function findPass(data) {
    return request({
        url: 'user/findPass',
        method: 'get',
        params: data
    })
}

export function getQuestion(data) {
    return request({
        url: 'user/getMiBao',
        method: 'post',
        data
    })
}